package com.coship.vas.dapg.dao.common;

import com.coship.vas.dapg.util.ConfigUtil;

public final class Defines
{
	private Defines()
	{

	}
	
	/**
	 * 系统所在WEB服务器地址
	 */
	public static final String LOCALHOST = ConfigUtil.getConfig("LOCALHOST");
	
	/**
	 * 手机视频点播服务器地址
	 */
	public static final String IPVOD = ConfigUtil.getConfig("IPVOD");
	
	/**
	 * 手机视频直播服务器地址
	 */
	public static final String IPLIVE = ConfigUtil.getConfig("IPLIVE");
	
	/**
	 * PAD点播服务器地址
	 */
	public static final String PADVOD = ConfigUtil.getConfig("PADVOD");
	
	/**
	 * PAD直播服务器地址
	 */
	public static final String PADLIVE = ConfigUtil.getConfig("PADLIVE");
	
	/**
	 * NGOD点播RTSP串
	 */
	public static final String NGODRTSP = ConfigUtil.getConfig("NGODRTSP");
	
	/**
	 * OC电视视频点播服务器地址
	 */
	public static final String OCRTSP = ConfigUtil.getConfig("OCRTSP");
	
	/**
	 * 电视直播频道服务器地址
	 */
	public static final String TVLIVE = ConfigUtil.getConfig("TVLIVE");
	
	/**
	 * 点播环境
	 */
	public static final boolean ISOC = "OC".equalsIgnoreCase(ConfigUtil.getConfig("VOD"));

	/**
	 * EPG监控目录
	 */
	public static final String EPG_DIR = ConfigUtil.getConfig("EPG_DIR");
	
	/**
	 * EPG备份目录
	 */
	public static final String EPG_BAK_DIR = ConfigUtil.getConfig("EPG_BAK_DIR");

	/**
	 * EPG网络下载地址
	 */
	public static final String EPG_URL = ConfigUtil.getConfig("EPG_URL");
	
	/**
	 * OC海报物理目录
	 */
	public static final String OC_POSTER_DIR = ConfigUtil.getConfig("OC_POSTER_DIR");
	/**
	 * 
	 */
	private static String TEMP_DIR = ConfigUtil.getConfig("OC_POSTER_URL");
	static{
		if(TEMP_DIR.startsWith("/")){
			TEMP_DIR.substring(1);
		}
	}
	public static final String OC_POSTER_URL = TEMP_DIR;
	
	/**
	 * 媒资同步地址
	 */
	public static final String OC_SYNC = ConfigUtil.getConfig("OC_SYNC");
	
	/**
	 * 同步源
	 */
	public static final String SYNC_ORIGIN = ConfigUtil.getConfig("SYNC_ORIGIN");
	
	/**
	 * 同步节点ID（以英文逗号隔开）
	 */
	public static final String SYNC_IDS = ConfigUtil.getConfig("SYNC_IDS");
	
	
	public static void main(String[] args)
	{
		System.out.println(Defines.NGODRTSP.replace("<purchase-token>","1595541"));
	}

}
